﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using frag_boardgame;

namespace DataBase
{
    interface IDBAdapter
    {
        DBPlayerInfo checkUserPassword(String username, String password);

        bool addAccount(String username, String password, String email);

        bool deleteUser(DBPlayerInfo playerInfo);

        bool deleteUser(int ID);

        DBPlayerInfo checkUsername(String username);

        bool updatePlayerInfo(DBPlayerInfo playerInfo);

        bool addScoreToPlayer(string username, int score);

        int getPlayerScore(string username);

        int createGameEnty(string gameName, DateTime time);

        bool createHistoryEntry(int gameID, string userName);

        List<String> getPlayerHistory(string username);

        bool addBoard(string name, Board board);

        Board getBoard(string name);

        List<String> getBoardsList();
    }
}
